/****** Object:  Stored Procedure [dbo].spNhomHangUpdate Script Date: 6/11/2012 ******/
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[spNhomHangUpdate]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[spNhomHangUpdate]
GO

/******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:					Description:
**		--------	--------				-----------------------------------
**		12/06/2012	SongTM					Innit created
*******************************************************************************/

CREATE PROCEDURE [dbo].[spNhomHangUpdate]
(
	@MaNH nvarchar(4),
	@TenNH nvarchar(30),
	@GhiChu nvarchar(50)
)

WITH ENCRYPTION

AS

SET NOCOUNT ON

UPDATE [tbl_NhomHang]
SET [TenNH] = @TenNH,
	[GhiChu] = @GhiChu
WHERE	[MaNH] = @MaNH
GO

--GRANT EXECUTE ON [dbo].[spNhomHangUpdate] TO [sa]
--GO
